package edu.sctu.jarime.may.day20150526.HashMapList;


import java.util.ArrayList;//util是系统内部写的方法类，而swq是组建
import java.util.HashMap;
import java.util.List;

/**
 * Created by user19 on 2015/5/26.
 */
public class HashMapList {

    public List<HashMap<String,Student>> hashmaplist(){
        List<HashMap<String,Student>> list = new ArrayList<HashMap<String,Student>>();
        HashMap<String,Student> map=new HashMap<String,Student>();
        Student studentInformation=new Student();
        Student studentInformationone=new Student();
        Student studentInformationtwo=new Student();




        studentInformation.age = 19;
        studentInformation.name = "李莉";
        studentInformation.sex = "男";


        studentInformationone.age = 20;
        studentInformationone.name = "杨升钰";
        studentInformationone.sex = "女";


        studentInformationtwo.age = 24;
        studentInformationtwo.name = "李蓉";
        studentInformationtwo.sex = "女";


        map.put("李莉",studentInformation);
        map.put("杨升钰",studentInformation);
        map.put("李蓉",studentInformation);

        list.add(map);

        return list;
    }

}
